#include "Player.h"

namespace player
{

Player::Player()
	: mLayOut(false)
	, mCash(0)
{
}


void Player::make_turn(const core::Card& c)
{
	if (hand().full())
		std::cout << "Hand is full\n" << std::endl;
	else
	{
		core::uint8 choose;
		std::cout << "dealed card: " << c << std::endl;
		
		while (true)
		{
			std::cout << "choose a box: ";
			std::cin >> choose;
			std::cout << std::endl;
			if (mHand.insert(c, choose) >= 0)
				break;
		}
	}
}


void Player::finish_hand()
{
	mHand.powers_count();
}


} // namespace player